package com.furnitur.modules.admin.dto.product;

import lombok.Data;
import javax.validation.constraints.*;
import java.math.BigDecimal;

@Data
public class FurnitureDTO {
    @NotNull(message = "分类ID不能为空")
    private Long categoryId;
    
    @NotBlank(message = "商品名称不能为空")
    private String name;
    
    private String description;
    
    @NotNull(message = "商品价格不能为空")
    @DecimalMin(value = "0.01", message = "商品价格必须大于0")
    private BigDecimal price;
    
    @NotNull(message = "商品库存不能为空")
    @Min(value = 0, message = "商品库存不能小于0")
    private Integer stock;
    
    @NotBlank(message = "商品图片不能为空")
    private String imageUrl;
    
    private Integer status = 1;  // 默认上架
} 